import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "@/styles/index.scss"
import App from './App.vue'
import router from './router'
import axios from 'axios';
import VueAxios from 'vue-axios'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as echarts from 'echarts'
import 'echarts-gl'
import * as qiniu from 'qiniu-js'

const app = createApp(App)
// ElementPlus 组件-icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus,{locale:zhCn})
app.use(VueAxios,axios)
app.use(createPinia())
app.use(echarts)
app.use(qiniu)
app.use(router)
app.mount('#app')
